NETUSER.BAS - Obtain the login name of the person using the system.
Written by
Chad Hegerty
Compuserve: 71212,1045
MSN: HegertyC
This program is Freeware/Donationware. If you find this program useful and use it in your applicaiton, please consider how much time, effort and money you have saved by acquiring this file and send a check for $10.00 to:
Chad Hegerty
P.O. Box 844
Worthington, OH 43085
If I get a good enough response from people, I will update the file for use with VB 4.0 and Access 7.0 when they become available.
Please feel free to redistribute these files in their entirety.
No guarantees are made as to its suitability or usefulness.
This module was written for Visual Basic/Access Basic. Modification may be necessary
for other environments.
Below is the declaration and function call needed to obtain the userID.
dim strUserID as string
strUserID = NetworkUserID()
If the user is not signed in or the ID cannot be obtained, then the
string "UnknownUser" is returned.
This module requires the CALL32.DLL file to function correctly under Windows 95 or
Windows NT. This file needs to be installed in the users SYSTEM directory where they have Windows installed.
The CALL32.DLL module, along with its text file, should be included with this file.
If you have any questions/suggestions, please feel free to drop my an E-Mail